package com.teemor.blog;

import com.teemor.blog.api.FcTest;
import com.teemor.blog.config.DmsConfigs;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.cloud.netflix.hystrix.EnableHystrix;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@SpringBootApplication
@MapperScan("com.teemor.blog.mapper")
//@EnableEurekaClient
//@EnableDiscoveryClient
//@EnableFeignClients
//@EnableHystrix
@RestController
public class BlogApplication {
	@Autowired
	FcTest fcTest;
	@Autowired
	DmsConfigs dmsConfigs;

	@GetMapping("/test")
	public int test() {
		return fcTest.test();
	}
	public static void main(String[] args) {
		SpringApplication.run(BlogApplication.class, args);
		System.out.println(1231);
	}
	/**
	 * 文件上传临时路径
	 */
//	@Bean
//	MultipartConfigElement multipartConfigElement() {
//		MultipartConfigFactory factory = new MultipartConfigFactory();
//		factory.setLocation("/app/tmp");
//		return factory.createMultipartConfig();
//	}



}
